//定义接口Animal
interface Animal11{
    int ID = 1;//定义全局常量
    String NAME = "牧羊犬";
    void shout();
    static int getID(){
        return Animal11.ID;
    }
    public void info();
}
interface Action11{
    public void eat();
}
class Dog11 implements Animal11,Action11{
    public void eat(){
        System.out.println("喜欢吃骨头");
    }
    public void shout(){
        System.out.println("汪汪······");
    }
    public void info(){
        System.out.println("名称：“+NAME");
    }
}
public class example11 {
    public static void main(String[] args) {
        System.out.println("编号"+Animal11.getID());
        Dog11 dog = new Dog11();
        dog.info();
        dog.shout();
        dog.eat();
    }
}
